Extract rule: template-attribute-indentation#2461
Conversation
eebc45d to
95b425f
Compare
| Non-block form (> 80 characters): | ||
|
|
||
| ```hbs | ||
| {{employee-details firstName=firstName lastName=lastName age=age avatarUrl=avatarUrl}} |
There was a problem hiding this comment.
Should these be updated to angle bracket invocation?
There was a problem hiding this comment.
in a different PR perhaps -- these are copying from ember-template-lint.
I'd rather get everything ported over from #2371, and then do full modernization passes, rather than doing the same small loop on repeat
|
|
||
| ## Rule Details | ||
|
|
||
| This rule requires the positional params, attributes, and block params of helpers/components to be indented by moving them to multiple lines when the open invocation has more than 80 characters (configurable). |
There was a problem hiding this comment.
Should this be hbs only since this is the kind of stylistic thing that should be prettier for template tags?
There was a problem hiding this comment.
it would be a stylisstic rule, yes (never in the recommended config), but not everyone uses prettier, so I imagine once all of #2371 is merged, we make sure this rule works with gjs
d41ba4f to
8c7a593
Compare
Missing
|
8c7a593 to
cab476d
Compare
Post-merge review of #2461 (`template-attribute-indentation`)
Split from #2371.